﻿<%@ Page Language="C#" MasterPageFile="~/Template/Edit.master" AutoEventWireup="true"
    CodeFile="GiftEdit.aspx.cs" Inherits="Gift_GiftEdit" Title="Untitled Page" %>

<%@ Register Assembly="ZLTextBox" Namespace="BaseText" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link type="text/css" href="../css/smoothness/jquery-ui-1.7.2.custom.css" rel="stylesheet" />

    <script type="text/javascript" src="../Js/jquery-1.3.2.min-vsdoc.js"></script>

    <script type="text/javascript" src="../Js/jquery-1.3.2.min.js"></script>

    <script type="text/javascript" src="../Js/jquery-ui-1.7.2.custom.min.js"></script>

    <script type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>

    <script type="text/javascript">
        function refreshParent() {
            try {
                window.opener.document.getElementById('ctl00$ListToolBarPlaceHolder$btnRefresh').click();
            }
            catch (e) {
            }
        }
        function AddUnit()
        {
            var returnValue=window.showModalDialog("UnitEdit.aspx?nc="+Math.random(),window,"dialogHeight=200px,dialogWidth=400px,scroll=no");
            if(returnValue=="1")
                window.location.href=window.location.href;
        }
   
    </script>

    <style type="text/css">
        .TextArea01
        {
            height: 70px;
            width: 80%;
        }
        .BigTB
        {
            height: 70px;
            width: 80%;
            background: #F4F9FF;
            overflow-y: visible;
        }
        .FieldName
        {
            background-color: #FBFBFB;
            text-align: center;
            padding: 5px;
            width: 25%;
        }
        .FieldInput
        {
            width: 75%;
            text-align: left;
            padding: 5px;
        }
        span
        {
            color: #666666;
            font-family: Verdana,Arial,Helvetica,sans-serif;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ToolBarContentPlaceHolder" runat="Server">
    <table border="0" cellspacing="0" cellpadding="2">
        <tr>
            <td class="ToolMenuEdit">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="lbtnSave" OnClick="lbtnSave_Click">
                    <span><img src="<%=ResolveUrl("~/Images/Icon/Object/Dataset-add.gif")%>" /></span><span>保存</span></asp:LinkButton>
                </div>
            </td>
            <td class="Fg" id="tdDeleteFg" runat="server">
                <img src="../Images/FgLine.gif" alt="" />
            </td>
            <td class="ToolMenuEdit">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)"
                    onclick="window.close();">
                    <span>
                        <img src="../Images/Icon/Action/delete.gif" alt="关闭" /></span><span>关闭</span>
                </div>
            </td>
            <td>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="FieldContentPlaceHolder" runat="Server">
    <table id="Table2" cellspacing="0" cellpadding="0" class="Table" width="100%">
        <tr>
            <td class="FieldName">
                <span>&nbsp;礼品名称：</span>
            </td>
            <td class="FieldInput">
                <asp:TextBox ID="tbGiftName" runat="server" CssClass="Textbox01" Width="200px" MaxLength="50"></asp:TextBox><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" Display="Static"
                    ControlToValidate="tbGiftName" SetFocusOnError="true"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="FieldName">
                <span>&nbsp;礼品价格：</span>
            </td>
            <td class="FieldInput">
                <cc1:ZLTextBox ID="tbGiftPrice" runat="server" InputType="formatNumber" CssClass="TextBox01"
                    MaxLength="10" Style="width: 200px;">
                </cc1:ZLTextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
                    ErrorMessage="*" Display="Static" ControlToValidate="tbGiftPrice" SetFocusOnError="true"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="FieldName" style="vertical-align: top;">
                <span>&nbsp;礼品单位：</span>
            </td>
            <td class="FieldInput" style="vertical-align: top;">
                <asp:DropDownList runat="server" ID="ddlGiftUnit" CssClass="Textbox01" Width="200px">
                </asp:DropDownList>
                <input type="button" class="Button01" onclick="AddUnit();" value="添加" />
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="DescriptionContentPlaceHolder" runat="Server">
</asp:Content>
